package com.fit.dao.registration;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.LicencePlate;
import com.fit.entities.Registration;

public interface RegistrationDAO {

	@CommitAfter
	public boolean save(Registration registration);
	
	public List<Registration> findByLicencePlateNo(LicencePlate licencePlate);
	
	public List<Registration>  findAll();
	
	public Registration findByID(Long id);
	
	public Registration findLast(LicencePlate licencePlate);
	
	@CommitAfter
	public boolean update(Registration registration);
	
	@CommitAfter
	public void delete(Long id);

}
